
README for Cyber Conflict & Domestic Audience Costs

Authors: Ryan Shandler

All analyses were carried out using RStudio Version 2023.12.1+402 on macOS Sonoma 14.3. R Version is 4.3.1. The following R packages (and their versions) are used: ggplot2 (3.5.1), psych (2.4.3), dplyr (1.1.4),  readr (2.1.4), janitor (2.2.0), stargazer (5.2.3), lmtest (0.9-40), sandwich (3.0-2)

R files in each section below should be run in the order they are listed. 
 - Lines 1 through 230 load and clean the data.
 - Lines 234 through 500 replicate the analyses, figures, and appendices in the manuscript in the order in which they appear. 

Source dataset: Raw_Data.csv
Analysis code: Replication_Code.R

